package player.ui.video;

import java.awt.Container;
import java.awt.Insets;
import java.awt.Panel;

import javax.swing.BorderFactory;
import javax.swing.JComponent;
import javax.swing.JPanel;

import player.PS;

public class VideoPanel extends Container{
	private static final long serialVersionUID = 802881885157149087L;
	VideoCanvas videoCanvas;
	VideoPanel videoPanel;
	VideoLayout layout;
	VideoPanel(){
		super();
		videoPanel=this;
		//BorderFactory.createEmptyBorder(5,10,15,20)
		//setBorder(null);
		Insets inset=this.getInsets();
		inset.top=5;
		inset.bottom=10;
		inset.left=15;
		inset.right=20;
		setBackground(java.awt.Color.yellow);
		layout=new VideoLayout();
		setLayout(layout);
		
		videoCanvas=new VideoCanvas();
		PS.videoCanvas=videoCanvas;
		videoCanvas.setName("videoCanvas");
		PS.videoFrame.addDragComponent(videoCanvas);
		
		
		add(videoCanvas);
		
	}
	
	long getWid(){
		return videoCanvas.getWid();
	}
	
	
	
}
